<template>
  <div style="width:100vw;">
    <!-- the Nvar -->
    <van-sticky>
      <van-nav-bar title="院内出库" left-arrow @click-left="onClickLeft" />
    </van-sticky>
    <div class="out-stock">
      <div>
        <div class="schedul-car">
          <span>调度处置中心转运车</span>
          <div v-show="isShow">
            <span style="color:#999999;">转运车离此地还有</span>
            <span style="color:#3F87E6;">2.0km</span>
          </div>
        </div>
        <el-button
          :type="button"
          plain
          size="small"
          round
          style="width:80px;"
          @click="schedulCar"
        >{{ this.buttonInfo }}</el-button>
      </div>
      <div @click="toScanHandverCode">
        <div>
          <i :class="['iconfont', 'icon-tubiaolunkuo-']"></i>
        </div>
        <span>扫描交接人二维码</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      button: "primary",
      buttonInfo: "确认",
      isShow: false,
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
    schedulCar() {
      this.button = "info";
      this.buttonInfo = "已调度";
      this.isShow = true;
    },
    toScanHandverCode() {
      this.$router.push({
        path: "/handverCode",
      });
    },
  },
  //请求数据
  created() {},
};
</script>

<style scoped lang ='less' >
.out-stock {
  background-color: #f2f2f2;
  min-height: 95vh;
  padding: 10px;
  font-size: 15px;
  .the-common-display {
    height: 80px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  & > div:nth-child(1) {
    .the-common-display();
    justify-content: space-around;
    .schedul-car {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      & > span {
        font-size: 17px;
      }
    }
  }
  & > div:nth-child(2) {
    .the-common-display();
    justify-content: center;
    & > div {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      border: 1px solid #666;
      background-color: #f7f6ff;
      text-align: center;
      line-height: 40px;
      margin-right: 20px;
    }
  }
}
</style>
